package com.liduanwei.springboot.controller

import org.springframework.stereotype.Controller
import org.springframework.web.bind.annotation.RequestMapping


@Controller
@RequestMapping(value = "")
class ErrorController {

    @RequestMapping(value = "400")
    fun error400(): Any {
        return "400"
    }

    @RequestMapping(value = "404")
    fun error404(): Any {
        return "404"
    }

    @RequestMapping(value = "500")
    fun error500(): Any {
        return "500"
    }
}